#include <iostream>
#include <string>

#include "./OPT.h"

using namespace std;



int main(int argc, char* argv[]){
    string file;
    if(argc!=4){
        usage();
        return 0;
    }else{
        l = atoi(argv[1]);
        r = atoi(argv[2]);
        file = string(argv[3]);
    }
    // string file = "../dataset/real/testdata.txt";
    program_t begProg, endProg;
    usedMemory = 0;
    double usedTime;
    int successNum=0;
    save_time(begProg);
    successNum = Hungarian_main(file);
    save_time(endProg);
    watchSolutionOnce(getpid(), usedMemory);
    usedTime = calc_time(begProg, endProg);
    printf("OPT %d %.6lf %d\n", successNum, usedTime, usedMemory);
    return 0;
}
